﻿using GalaSoft.MvvmLight.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Confighelper
{
    /// <summary>
    /// 表示一个菜单
    /// </summary>
    public class MenuInfo
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 菜单动作
        /// </summary>
        public RelayCommand Execute { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        public bool IsEnabled { get; set; }

        /// <summary>
        /// 子集菜单
        /// </summary>
        public List<MenuInfo> Child { get; set; }

        public MenuInfo()
        {
            Child = new List<MenuInfo>();
        }
    }
}
